run queue after x minutes laravel

37

public function store() {
    // some stuff

    // after 10 minutes
    $on = \Carbon\Carbon::now()->addMinutes(10);        

    dispatch(new \App\Jobs\SomeJob(...$someVariables))->delay($on);
}

Comments

Submit
0 Comments